package com.test.ds.link.doublylinked;

public class DoublyLinkedApp {

	public static void main(String[] args) {
		DoublyLinkedList theList = new DoublyLinkedList();
		
		theList.inserFirst(22);
		theList.inserFirst(44);
		theList.inserFirst(66);
		
		theList.inserLast(11);
		theList.inserLast(33);
		theList.inserLast(55);
		
		theList.displayForward();
		theList.displayBackward();
		
		theList.deleteFirst();
		theList.deleteLast();
		theList.deleteKey(11);
		
		theList.displayForward();
		
		theList.insertAfter(22, 77);
		theList.insertAfter(33, 88);
		
		theList.displayForward();

	}

}
